package org.example.model;

public class Sprayer extends FarmMachine {
    private double sprayWidth;
    private double liquidFlow;

    public Sprayer(String id) {
        super(id);
        this.type = "喷药机";
        this.sprayWidth = 3.0;
        this.liquidFlow = 15.0;
    }

    @Override
    public void performTask() {
        System.out.println(type + "[" + id + "] 正在执行喷药任务: 宽度=" + sprayWidth + "m, 流量=" + liquidFlow + "L/分钟");
    }

    public double getSprayWidth() { return sprayWidth; }
    public void setSprayWidth(double sprayWidth) { this.sprayWidth = sprayWidth; }
    public double getLiquidFlow() { return liquidFlow; }
    public void setLiquidFlow(double liquidFlow) { this.liquidFlow = liquidFlow; }
}